#include <iostream>
using namespace std;

int main() {
	int n = 0;
	int num = 0;
	cout << "input num:" ;
	cin >> n;

	int* arr = new int[n];

	cout << "input the array:" << endl;
	for(int i=0; i<n; i++) {
		cin >> arr[i];
	}

	cout << "input num for found:";
	cin >> num;

	for(int i=0; i<n; i++) {
		if(arr[i] == num) {
			cout << i << endl;
			return 0;
		}
	}

	cout << "nil" << endl;

	delete arr;
	return 0;
}
